//
//  JaneImageTopicModelCell.m
//  EPA
//
//  Created by lanou3g on 16/4/22.
//  Copyright © 2016年 张静. All rights reserved.
//

#import "JaneImageTopicModelCell.h"

@interface JaneImageTopicModelCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLable;
@property (weak, nonatomic) IBOutlet UIImageView *coverimgView;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *unameLabel;
@property (weak, nonatomic) IBOutlet UILabel *addtimeLabel;
@property (weak, nonatomic) IBOutlet UILabel *addtime_fLabel;

@end


@implementation JaneImageTopicModelCell

- (void)setModel:(JaneImageTopicModel *)model {
    if (_model != model) {
        _model = model;
    }
}


- (void)layoutSubviews {
    self.titleLable.text = self.model.title;
    self.contentLabel.text = self.model.content;
    [self.coverimgView sd_setImageWithURL:[NSURL URLWithString:self.model.coverimg]];
    self.unameLabel.text = self.model.userinfo[@"uname"];
    self.addtime_fLabel.text = self.model.addtime_f;
    self.addtimeLabel.text = [NSString stringWithFormat:@"%@",self.model.addtime];
    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:self.model.userinfo[@"icon"]]];
}
+ (CGFloat)height {
    return 230;
}


@end
